package codeComposition;
import util.Translator;
import java.util.*;

public class SimpleExpressionElement extends ExpressionElement {
	private ArrayList<String> s;
	public SimpleExpressionElement(int tabNum, String...s){
		super(tabNum);
		this.s = Translator.stringsToList(s);
	}
	public SimpleExpressionElement(String...s){
		super();
		this.s = Translator.stringsToList(s);
	}
	public SimpleExpressionElement(){
		super();
		this.s = new ArrayList<String>();
	}
	public void add(String...s){
		for(String ss:s) 
			this.s.add(ss);
	}
	public String toString(){
		String str = "";
		for(String a:s){
			str = str + this.tabStr + a + "\n";
		}
		return str;
	}
}
